package com.ruoyi.driver.order.service.impl;

import com.ruoyi.driver.order.mapper.DriverOrderMapper;
import com.ruoyi.driver.order.service.DriverOrderService;
import com.ruoyi.driver.order.vo.DriverOrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 分行Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-07
 */
@Service
public class DriverOrderServiceImpl implements DriverOrderService
{
    @Autowired
    private DriverOrderMapper driverOrderMapper;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public DriverOrderVo getDriverOrderById(Long id) {
        return driverOrderMapper.getDriverOrderById(id);
    }

    @Override
    public DriverOrderVo getDriverOrderByPlatformId(String platformId) {
        return driverOrderMapper.getDriverOrderByPlatformId(platformId);
    }
}
